package com.googlecode.asm_ide.compiler;

import java.io.File;
import javax.swing.filechooser.FileFilter;

/**
 *
 * @author Philipp Hell <philipp@hell.info>
 */
public class SourceFileFilter extends FileFilter{

    @Override
    public boolean accept(File file) {
        return file.getParent().endsWith("src") && file.getName().toLowerCase().endsWith(".asm");
    }

    @Override
    public String getDescription() {
        return "ASM-IDE Source Files";
    }
    
}
